/***
 * 学院管理 
 * 
 * 
 * **/


import request from "@/utils/request.js"


// 学院管理左侧导航树

export function colleageTreeDataApi() { 
  return request({
      url: '/edu/colleage/colleageTreeData',
      method: 'POST' 
  })
}

// 新增学院
export function colleageAddApi(data) {
  console.log(data);
  return request({
    url: '/edu/colleage/add',
    method: 'POST',
    params: data
  })
}

// 获取table数据
export function getTableApi(data) {
  console.log(data);
  return request({
      url: '/edu/colleage/list',
      method: 'POST',
      params: data
    })
}

// 获取上级学院下拉框数据
export function getParnentCollege() {
    return request({
        url: '/edu/colleage/parentColleagelist',
        method: 'POST',
      })
}

// 修改学院
export function editColleage(data) {
    return request({
        url: '/edu/colleage/edit',
        method: 'POST',
        params:data
    })
}

// 删除学院
export function deleteColleage(data) {
    return request({
        url: '/edu/colleage/remove',
        method: 'POST',
        params:data
    })
}